import json
from pprint import pprint

class OperationJson:
    @staticmethod
    def build_data(filepath):
        # 打开json文件
        with open(filepath, mode='r', encoding='utf-8') as f:
            # 读取json文件，取出数据[{},{},{}]
            json_data = json.load(f)
            return json_data


if __name__ == '__main__':
    pprint(OperationJson.build_data("../data/login.json"))
